package com.guo.hui.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
//@RequestMapping(value = "")
public class IndexController {

    @RequestMapping(value = "/index")
    public String login(){
        return "/index";
    }

    @ResponseBody
    @RequestMapping(value = "/update")
    public String index(String name){
        return name;
    }

}
